<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<body>
<style type="text/css">
	#activityHome{
		padding: 15px;
		background: #fff;
		border-radius: 10px;
	}
	.layui-inline{
		width:50%;
		margin-left: 20%;
	}
	.layui-input-block{
		margin-left: 135px;
	}
	.layui-form-label{
		width: 100px;
	}
</style>
<div id="activityHome">
	<fieldset class="layui-elem-field layui-field-title site-title">
		<legend><a name="fixbar">班级活动</a></legend>
	</fieldset>
	<form class="layui-form" action="save" method="post" style="padding-top:20px;padding-right: 100px;" lay-filter="stuform">
		<input type="hidden" name="id" value="${model.id}">
		<div class="layui-form-item">
			<div class="layui-inline">
		   		<label class="layui-form-label">班级</label>
		   		<div class="layui-input-block">
		     			<select name="tbClass.id" lay-verify="required">
		     				<option value=""></option>
		     				<c:forEach items="${bjs}" var="bj">
		     					<option value="${bj.id}" <c:if test='${model.tbClass.id == bj.id}'>selected</c:if>>${bj.name}</option>
		     				</c:forEach>
		     			</select>
		   		</div>
	 		</div>
	 	</div>
		<div class="layui-form-item">
			<div class="layui-inline">
		   		<label class="layui-form-label">活动主题</label>
		   		<div class="layui-input-block">
		     			<input type="text" name="motif" value="${model.motif}" lay-verify="required" required autocomplete="off" placeholder="活动主题" class="layui-input">
		   		</div>
	 		</div>
	 	</div>
		<div class="layui-form-item">
			<div class="layui-inline">
		   		<label class="layui-form-label">开始时间</label>
		   		<div class="layui-input-block">
		     			<input type="text" name=begintime value="${model.begintime}" id="activity_time" lay-verify="required" required autocomplete="off" placeholder="请选择开始时间" class="layui-input">
		   		</div>
	 		</div>
	 	</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">结束时间</label>
				<div class="layui-input-block">
					   <input type="text" name="overtime" value="${model.overtime}" id="activity_endtime"  lay-verify="required" required autocomplete="off" placeholder="请选择结束时间" class="layui-input">		
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
		   		<label class="layui-form-label">活动内容</label>
		   		<div class="layui-input-block">
		     			<input type="text" name="content" value="${model.content}"  autocomplete="off" placeholder="活动内容" class="layui-input">
		   		</div>
	 		</div>
	 	</div>
		<div class="layui-form-item">
			<div class="layui-inline">
		   		<label class="layui-form-label">活动总结</label>
		   		<div class="layui-input-block">
		     			<input type="text" name="summarize" value="${model.summarize}"  autocomplete="off" placeholder="活动总结" class="layui-input">
		   		</div>
	 		</div>
	 	</div>
	</form>
</div>
<script type="text/javascript">
	form=layui.form;
	form.render('select');
	
	layui.use('laydate', function(){
		var laydate = layui.laydate;
		laydate.render({
			elem: '#activity_time',
		});
		laydate.render({
			elem: '#activity_endtime',
		});
	});
</script>
</html>